package wm.samsung.main;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.ExpandableListActivity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnCreateContextMenuListener;
import android.view.animation.AlphaAnimation;
import android.widget.Button;
import android.widget.ExpandableListAdapter;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.ExpandableListView;
import android.widget.Toast;

public class imagenActivity extends Activity {
	private AlphaAnimation alphaDown;
	private AlphaAnimation alphaUp;
	private ImageView imagen1;
	private ImageView imagen2;
	private ImageView imagen3;
	private ImageView imagen4;
	private ImageView imagen5;
	public String noParte = "";
	public String contenido = "";
	private Button button_A0241;
	private Button button_A0238;
	private Button button_T0049;
	private Button button_M0242;
	private Button button_M0082;
	private Button button_A0273;
	private Button button_T0081;
	private Button button_M0278;
	private Button button_T0044;
	private Button button_M0281;
	private Button button_M0294;
	private Button button_A0243;
	private Button button_A0669;
	private Button button_M0297;
	private Button button_T0030;
	private Button button_M0243;
	private Button button_A0813;
	private Button button_A0239;
	private Button button_M0286;
	private Button button_A0562;
	private Button button_A0102;
	private Button button_M0333;
	private Button button_M0165;
	private Button button_M0334;
	private Button button_M0564;
	private Button button_M0067;
	private Button button_M0245;
	private Button button_M0210;
	private Button button_M0158;
	private Button button_M0105;
	private Button button_A0575;
	private Button button_M0123;
	private Button button_M0264;
	private Button button_M0246;
	private Button button_M0349;
	private Button button_Z1032;
	private Button button_A0837;
	private Button button_M0210_1;
	private Button button_M0266;
	private Button button_M0333_1;
	private Button button_M0442;
	private Button button_Z1112;
	private Button button_A0529;
	private Button button_M0116;
	private Button button_A0768;
	private Button button_A0091;
	private Button button_T0042;
	private Button button_T0010;
	private Button button_T0001;
	private Button button_M0232;
	private Button button_M0181;
	private Button button_T0015;
	private Button button_Z1023;
	private Button button_M0146;
	private Button button_M0145;
	private Button button_M0262;
	private Button button_A0577;
	private Button button_M0153;
	// botones interior derecha
	private Button button_M0293;
	private Button button_M0254;
	private Button button_M0293_1;
	private Button button_T0037;
	private Button button_M0271;
	private Button button_M0270;
	private Button button_M0258;
	private Button button_M0730;
	private Button button_M0272;
	private Button button_M0236;
	private Button button_A0678;
	private Button button_T0048;
	private Button button_M0256;
	private Button button_T0047;
	private Button button_M0237;
	// botones interior izquierda
	private Button button_M0253;
	private Button button_M0252;
	private Button button_M0251;
	private Button button_M0247;
	private Button button_M0122;
	private Button button_M0240;
	private Button button_M0393;
	private Button button_M0290;
	private Button button_M0234;
	private Button button_M0069;
	private Button button_M0287;
	private Button button_M0199;
	private Button button_M0274;
	private Button button_M0241;
	private Button button_A0162;
	private Button button_A0744;
	private Button button_A0285;
	private Button button_M0318;
	private Button button_M0273;
	private Button button_M0239;
	private Button button_M0267;
	private Button button_M0249;
	private Button button_M0250;
	// botones puerta nevera
	private Button button_A0052;
	private Button button_A0535;
	private Button button_M0094;
	private Button button_A0836;
	private Button button_A0660;
	private Button button_A0155;
	private Button button_A0284;
	private Button button_A0635;
	private Button button_M0222;
	private Button button_M0389;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Bundle bundle = getIntent().getExtras();
		if (bundle != null) {
			String contenido = bundle.getString("clavecontenido");
		}
		setContentView(R.layout.imagen);
		imagen1 = (ImageView) findViewById(R.id.imagen1);
		imagen1.setVisibility(View.VISIBLE);
		imagen2 = (ImageView) findViewById(R.id.imagen2);
		imagen2.setVisibility(View.INVISIBLE);
		imagen3 = (ImageView) findViewById(R.id.imagen3);
		imagen3.setVisibility(View.INVISIBLE);
		imagen4 = (ImageView) findViewById(R.id.imagen4);
		imagen4.setVisibility(View.INVISIBLE);
		imagen5 = (ImageView) findViewById(R.id.imagen5);
		imagen5.setVisibility(View.INVISIBLE);
		button_A0241 = (Button) findViewById(R.id.button1_A0241);
		button_A0238 = (Button) findViewById(R.id.button2_A0238);
		button_T0049 = (Button) findViewById(R.id.button3_T0049);
		button_M0242 = (Button) findViewById(R.id.button4_M0242);
		button_M0082 = (Button) findViewById(R.id.button4_M0082);
		button_A0273 = (Button) findViewById(R.id.button5_A0273);
		button_T0081 = (Button) findViewById(R.id.button6_T0081);
		button_M0278 = (Button) findViewById(R.id.button7_M0278);
		button_T0044 = (Button) findViewById(R.id.button8_T0044);
		button_M0281 = (Button) findViewById(R.id.button9_M0281);
		button_M0294 = (Button) findViewById(R.id.button10_M0294);
		button_A0243 = (Button) findViewById(R.id.button11_A0243);
		button_A0669 = (Button) findViewById(R.id.button12_A0669);
		button_M0297 = (Button) findViewById(R.id.button13_M0297);
		button_T0030 = (Button) findViewById(R.id.button14_T0030);
		button_M0243 = (Button) findViewById(R.id.button16_M0243);
		button_A0813 = (Button) findViewById(R.id.button17_A0813);
		button_A0239 = (Button) findViewById(R.id.button18_A0239);
		button_M0286 = (Button) findViewById(R.id.button19_M0286);
		button_A0562 = (Button) findViewById(R.id.button20_A0562);
		button_A0102 = (Button) findViewById(R.id.button21_A0102);
		button_M0333 = (Button) findViewById(R.id.button22_M0333);
		button_M0165 = (Button) findViewById(R.id.button23_M0165);
		button_M0334 = (Button) findViewById(R.id.button24_M0334);
		button_M0564 = (Button) findViewById(R.id.button25_M0564);
		button_M0067 = (Button) findViewById(R.id.button26_M0067);
		button_M0245 = (Button) findViewById(R.id.button27_M0245);
		button_M0210 = (Button) findViewById(R.id.button28_M0210);
		button_M0158 = (Button) findViewById(R.id.button29_M0158);
		button_M0105 = (Button) findViewById(R.id.button30_M0105);
		button_A0575 = (Button) findViewById(R.id.button31_A0575);
		button_M0123 = (Button) findViewById(R.id.button32_M0123);
		button_M0264 = (Button) findViewById(R.id.button33_M0264);
		button_M0246 = (Button) findViewById(R.id.button34_M0246);
		button_M0349 = (Button) findViewById(R.id.button35_M0349);
		button_Z1032 = (Button) findViewById(R.id.button36_Z1032);
		button_A0837 = (Button) findViewById(R.id.button37_A0837);
		button_M0210_1 = (Button) findViewById(R.id.button38_M0210);
		button_M0266 = (Button) findViewById(R.id.button39_M0266);
		button_M0333_1 = (Button) findViewById(R.id.button40_M0333);
		button_M0442 = (Button) findViewById(R.id.button41_M0442);
		button_Z1112 = (Button) findViewById(R.id.button42_Z1112);
		button_A0529 = (Button) findViewById(R.id.button43_A0529);
		button_M0116 = (Button) findViewById(R.id.button44_M0116);
		button_A0768 = (Button) findViewById(R.id.button45_A0768);
		button_A0091 = (Button) findViewById(R.id.button46_A0091);
		button_T0042 = (Button) findViewById(R.id.button47_T0042);
		button_T0010 = (Button) findViewById(R.id.button48_T0010);
		button_T0001 = (Button) findViewById(R.id.button49_T0001);
		button_M0232 = (Button) findViewById(R.id.button50_M0232);
		button_M0181 = (Button) findViewById(R.id.button51_M0181);
		button_T0015 = (Button) findViewById(R.id.button52_T0015);
		button_Z1023 = (Button) findViewById(R.id.button53_Z1023);
		button_M0146 = (Button) findViewById(R.id.button54_M0146);
		button_M0145 = (Button) findViewById(R.id.button55_M0145);
		button_M0262 = (Button) findViewById(R.id.button56_M0262);
		button_A0577 = (Button) findViewById(R.id.button57_A0577);
		button_M0153 = (Button) findViewById(R.id.button58_M0153);
		/* Botones imagen interior derecha */
		button_M0293 = (Button) findViewById(R.id.button59_M0293);
		button_M0254 = (Button) findViewById(R.id.button59_M0254);
		button_M0293_1 = (Button) findViewById(R.id.button60_M0293);
		button_T0037 = (Button) findViewById(R.id.button60_T0037);
		button_M0271 = (Button) findViewById(R.id.button61_M0271);
		button_M0270 = (Button) findViewById(R.id.button62_M0270);
		button_M0258 = (Button) findViewById(R.id.button63_M0258);
		button_M0730 = (Button) findViewById(R.id.button64_M0730);
		button_M0272 = (Button) findViewById(R.id.button65_M0272);
		button_M0236 = (Button) findViewById(R.id.button66_M0236);
		button_A0678 = (Button) findViewById(R.id.button67_A0678);
		button_T0048 = (Button) findViewById(R.id.button68_T0048);
		button_M0256 = (Button) findViewById(R.id.button69_M0256);
		button_T0047 = (Button) findViewById(R.id.button70_T0047);
		button_M0237 = (Button) findViewById(R.id.button71_M0237);
		/* Botones imagen interior izquierda */
		button_M0253 = (Button) findViewById(R.id.button72_M0253);
		button_M0252 = (Button) findViewById(R.id.button73_M0252);
		button_M0251 = (Button) findViewById(R.id.button74_M0251);
		button_M0247 = (Button) findViewById(R.id.button75_M0247);
		button_M0122 = (Button) findViewById(R.id.button76_M0122);
		button_M0240 = (Button) findViewById(R.id.button78_M0240);
		button_M0393 = (Button) findViewById(R.id.button79_M0393);
		button_M0290 = (Button) findViewById(R.id.button80_M0290);
		button_M0234 = (Button) findViewById(R.id.button81_M0234);
		button_M0069 = (Button) findViewById(R.id.button82_M0069);
		button_M0287 = (Button) findViewById(R.id.button83_M0287);
		button_M0199 = (Button) findViewById(R.id.button84_M0199);
		button_M0274 = (Button) findViewById(R.id.button85_M0274);
		button_M0241 = (Button) findViewById(R.id.button85_M0241);
		button_A0162 = (Button) findViewById(R.id.button86_A0162);
		button_A0744 = (Button) findViewById(R.id.button87_A0744);
		button_A0285 = (Button) findViewById(R.id.button88_A0285);
		button_M0318 = (Button) findViewById(R.id.button89_M0318);
		button_M0273 = (Button) findViewById(R.id.button90_M0273);
		button_M0239 = (Button) findViewById(R.id.button91_M0239);
		button_M0267 = (Button) findViewById(R.id.button92_M0267);
		button_M0249 = (Button) findViewById(R.id.button93_M0249);
		button_M0250 = (Button) findViewById(R.id.button94_M0250);
		/* botonoes puerta nevera */
		button_A0052 = (Button) findViewById(R.id.button95_A0052);
		button_A0535 = (Button) findViewById(R.id.button96_A0535);
		button_M0094 = (Button) findViewById(R.id.button97_M0094);
		button_A0836 = (Button) findViewById(R.id.button98_A0836);
		button_A0660 = (Button) findViewById(R.id.button99_A0660);
		button_A0155 = (Button) findViewById(R.id.button100_A0155);
		button_A0284 = (Button) findViewById(R.id.button101_A0284);
		button_A0635 = (Button) findViewById(R.id.button102_A0635);
		button_M0222 = (Button) findViewById(R.id.button103_M0222);
		button_M0389 = (Button) findViewById(R.id.button104_M0389);

		asignarListener();

		/* asignar visibilidad parte derecha interior */
		button_M0293.setVisibility(View.INVISIBLE);
		button_M0254.setVisibility(View.INVISIBLE);
		button_M0293_1.setVisibility(View.INVISIBLE);
		button_T0037.setVisibility(View.INVISIBLE);
		button_M0271.setVisibility(View.INVISIBLE);
		button_M0270.setVisibility(View.INVISIBLE);
		button_M0258.setVisibility(View.INVISIBLE);
		button_M0730.setVisibility(View.INVISIBLE);
		button_M0272.setVisibility(View.INVISIBLE);
		button_M0236.setVisibility(View.INVISIBLE);
		button_A0678.setVisibility(View.INVISIBLE);
		button_T0048.setVisibility(View.INVISIBLE);
		button_M0256.setVisibility(View.INVISIBLE);
		button_T0047.setVisibility(View.INVISIBLE);
		button_M0237.setVisibility(View.INVISIBLE);
		/* asignar visibilidad parte izquierda interior */
		button_M0253.setVisibility(View.INVISIBLE);
		button_M0252.setVisibility(View.INVISIBLE);
		button_M0251.setVisibility(View.INVISIBLE);
		button_M0247.setVisibility(View.INVISIBLE);
		button_M0122.setVisibility(View.INVISIBLE);
		button_M0240.setVisibility(View.INVISIBLE);
		button_M0393.setVisibility(View.INVISIBLE);
		button_M0290.setVisibility(View.INVISIBLE);
		button_M0234.setVisibility(View.INVISIBLE);
		button_M0069.setVisibility(View.INVISIBLE);
		button_M0287.setVisibility(View.INVISIBLE);
		button_M0199.setVisibility(View.INVISIBLE);
		button_M0274.setVisibility(View.INVISIBLE);
		button_M0241.setVisibility(View.INVISIBLE);
		button_A0162.setVisibility(View.INVISIBLE);
		button_A0744.setVisibility(View.INVISIBLE);
		button_A0285.setVisibility(View.INVISIBLE);
		button_M0318.setVisibility(View.INVISIBLE);
		button_M0273.setVisibility(View.INVISIBLE);
		button_M0239.setVisibility(View.INVISIBLE);
		button_M0267.setVisibility(View.INVISIBLE);
		button_M0249.setVisibility(View.INVISIBLE);
		button_M0250.setVisibility(View.INVISIBLE);
		/* botonoes puerta nevera */
		button_A0052.setVisibility(View.INVISIBLE);
		button_A0535.setVisibility(View.INVISIBLE);
		button_M0094.setVisibility(View.INVISIBLE);
		button_A0836.setVisibility(View.INVISIBLE);
		button_A0660.setVisibility(View.INVISIBLE);
		button_A0155.setVisibility(View.INVISIBLE);
		button_A0284.setVisibility(View.INVISIBLE);
		button_A0635.setVisibility(View.INVISIBLE);
		button_M0222.setVisibility(View.INVISIBLE);
		button_M0389.setVisibility(View.INVISIBLE);

	}

	private void CreateMenu(Menu menu) {
		menu.setQwertyMode(true);
		MenuItem mnu1 = menu.add(0, 0, 0, "Vista General");
		MenuItem mnu2 = menu.add(0, 1, 1, "Interior Derecha");
		MenuItem mnu3 = menu.add(0, 2, 2, "Interior Izquierda");
		MenuItem mnu4 = menu.add(0, 3, 3, "Puerta Nevera");
	}

	private boolean MenuChoice(MenuItem item) {
		switch (item.getItemId()) {
		case 0:
			imagen1.setVisibility(View.VISIBLE);
			imagen2.setVisibility(View.INVISIBLE);
			imagen3.setVisibility(View.INVISIBLE);
			imagen4.setVisibility(View.INVISIBLE);
			imagen5.setVisibility(View.INVISIBLE);
			/* botones vista general */
			button_A0241.setVisibility(View.VISIBLE);
			button_A0238.setVisibility(View.VISIBLE);
			button_T0049.setVisibility(View.VISIBLE);
			button_M0242.setVisibility(View.VISIBLE);
			button_M0082.setVisibility(View.VISIBLE);
			button_A0273.setVisibility(View.VISIBLE);
			button_T0081.setVisibility(View.VISIBLE);
			button_M0278.setVisibility(View.VISIBLE);
			button_T0044.setVisibility(View.VISIBLE);
			button_M0281.setVisibility(View.VISIBLE);
			button_M0294.setVisibility(View.VISIBLE);
			button_A0243.setVisibility(View.VISIBLE);
			button_A0669.setVisibility(View.VISIBLE);
			button_M0297.setVisibility(View.VISIBLE);
			button_T0030.setVisibility(View.VISIBLE);
			button_M0243.setVisibility(View.VISIBLE);
			button_A0813.setVisibility(View.VISIBLE);
			button_A0239.setVisibility(View.VISIBLE);
			button_M0286.setVisibility(View.VISIBLE);
			button_A0562.setVisibility(View.VISIBLE);
			button_A0102.setVisibility(View.VISIBLE);
			button_M0333.setVisibility(View.VISIBLE);
			button_M0165.setVisibility(View.VISIBLE);
			button_M0334.setVisibility(View.VISIBLE);
			button_M0564.setVisibility(View.VISIBLE);
			button_M0067.setVisibility(View.VISIBLE);
			button_M0245.setVisibility(View.VISIBLE);
			button_M0210.setVisibility(View.VISIBLE);
			button_M0158.setVisibility(View.VISIBLE);
			button_M0105.setVisibility(View.VISIBLE);
			button_A0575.setVisibility(View.VISIBLE);
			button_M0123.setVisibility(View.VISIBLE);
			button_M0264.setVisibility(View.VISIBLE);
			button_M0246.setVisibility(View.VISIBLE);
			button_M0349.setVisibility(View.VISIBLE);
			button_Z1032.setVisibility(View.VISIBLE);
			button_A0837.setVisibility(View.VISIBLE);
			button_M0210_1.setVisibility(View.VISIBLE);
			button_M0266.setVisibility(View.VISIBLE);
			button_M0333_1.setVisibility(View.VISIBLE);
			button_M0442.setVisibility(View.VISIBLE);
			button_Z1112.setVisibility(View.VISIBLE);
			button_A0529.setVisibility(View.VISIBLE);
			button_M0116.setVisibility(View.VISIBLE);
			button_A0768.setVisibility(View.VISIBLE);
			button_A0091.setVisibility(View.VISIBLE);
			button_T0042.setVisibility(View.VISIBLE);
			button_T0010.setVisibility(View.VISIBLE);
			button_T0001.setVisibility(View.VISIBLE);
			button_M0232.setVisibility(View.VISIBLE);
			button_M0181.setVisibility(View.VISIBLE);
			button_T0015.setVisibility(View.VISIBLE);
			button_Z1023.setVisibility(View.VISIBLE);
			button_M0146.setVisibility(View.VISIBLE);
			button_M0145.setVisibility(View.VISIBLE);
			button_M0262.setVisibility(View.VISIBLE);
			button_A0577.setVisibility(View.VISIBLE);
			button_M0153.setVisibility(View.VISIBLE);
			/* botones derecha interior */
			button_M0293.setVisibility(View.INVISIBLE);
			button_M0254.setVisibility(View.INVISIBLE);
			button_M0293_1.setVisibility(View.INVISIBLE);
			button_T0037.setVisibility(View.INVISIBLE);
			button_M0271.setVisibility(View.INVISIBLE);
			button_M0270.setVisibility(View.INVISIBLE);
			button_M0258.setVisibility(View.INVISIBLE);
			button_M0730.setVisibility(View.INVISIBLE);
			button_M0272.setVisibility(View.INVISIBLE);
			button_M0236.setVisibility(View.INVISIBLE);
			button_A0678.setVisibility(View.INVISIBLE);
			button_T0048.setVisibility(View.INVISIBLE);
			button_M0256.setVisibility(View.INVISIBLE);
			button_T0047.setVisibility(View.INVISIBLE);
			button_M0237.setVisibility(View.INVISIBLE);
			/* parte izquierda interior */
			button_M0253.setVisibility(View.INVISIBLE);
			button_M0252.setVisibility(View.INVISIBLE);
			button_M0251.setVisibility(View.INVISIBLE);
			button_M0247.setVisibility(View.INVISIBLE);
			button_M0122.setVisibility(View.INVISIBLE);
			button_M0240.setVisibility(View.INVISIBLE);
			button_M0393.setVisibility(View.INVISIBLE);
			button_M0290.setVisibility(View.INVISIBLE);
			button_M0234.setVisibility(View.INVISIBLE);
			button_M0069.setVisibility(View.INVISIBLE);
			button_M0287.setVisibility(View.INVISIBLE);
			button_M0199.setVisibility(View.INVISIBLE);
			button_M0274.setVisibility(View.INVISIBLE);
			button_M0241.setVisibility(View.INVISIBLE);
			button_A0162.setVisibility(View.INVISIBLE);
			button_A0744.setVisibility(View.INVISIBLE);
			button_A0285.setVisibility(View.INVISIBLE);
			button_M0318.setVisibility(View.INVISIBLE);
			button_M0273.setVisibility(View.INVISIBLE);
			button_M0239.setVisibility(View.INVISIBLE);
			button_M0267.setVisibility(View.INVISIBLE);
			button_M0249.setVisibility(View.INVISIBLE);
			button_M0250.setVisibility(View.INVISIBLE);
			/* botonoes puerta nevera */
			button_A0052.setVisibility(View.INVISIBLE);
			button_A0535.setVisibility(View.INVISIBLE);
			button_M0094.setVisibility(View.INVISIBLE);
			button_A0836.setVisibility(View.INVISIBLE);
			button_A0660.setVisibility(View.INVISIBLE);
			button_A0155.setVisibility(View.INVISIBLE);
			button_A0284.setVisibility(View.INVISIBLE);
			button_A0635.setVisibility(View.INVISIBLE);
			button_M0222.setVisibility(View.INVISIBLE);
			button_M0389.setVisibility(View.INVISIBLE);
			return true;
		case 1:
			imagen1.setVisibility(View.INVISIBLE);
			imagen2.setVisibility(View.VISIBLE);
			imagen3.setVisibility(View.INVISIBLE);
			imagen4.setVisibility(View.INVISIBLE);
			imagen5.setVisibility(View.INVISIBLE);
			/* botones vista general */
			button_A0241.setVisibility(View.INVISIBLE);
			button_A0238.setVisibility(View.INVISIBLE);
			button_T0049.setVisibility(View.INVISIBLE);
			button_M0242.setVisibility(View.INVISIBLE);
			button_M0082.setVisibility(View.INVISIBLE);
			button_A0273.setVisibility(View.INVISIBLE);
			button_T0081.setVisibility(View.INVISIBLE);
			button_M0278.setVisibility(View.INVISIBLE);
			button_T0044.setVisibility(View.INVISIBLE);
			button_M0281.setVisibility(View.INVISIBLE);
			button_M0294.setVisibility(View.INVISIBLE);
			button_A0243.setVisibility(View.INVISIBLE);
			button_A0669.setVisibility(View.INVISIBLE);
			button_M0297.setVisibility(View.INVISIBLE);
			button_T0030.setVisibility(View.INVISIBLE);
			button_M0243.setVisibility(View.INVISIBLE);
			button_A0813.setVisibility(View.INVISIBLE);
			button_A0239.setVisibility(View.INVISIBLE);
			button_M0286.setVisibility(View.INVISIBLE);
			button_A0562.setVisibility(View.INVISIBLE);
			button_A0102.setVisibility(View.INVISIBLE);
			button_M0333.setVisibility(View.INVISIBLE);
			button_M0165.setVisibility(View.INVISIBLE);
			button_M0334.setVisibility(View.INVISIBLE);
			button_M0564.setVisibility(View.INVISIBLE);
			button_M0067.setVisibility(View.INVISIBLE);
			button_M0245.setVisibility(View.INVISIBLE);
			button_M0210.setVisibility(View.INVISIBLE);
			button_M0158.setVisibility(View.INVISIBLE);
			button_M0105.setVisibility(View.INVISIBLE);
			button_A0575.setVisibility(View.INVISIBLE);
			button_M0123.setVisibility(View.INVISIBLE);
			button_M0264.setVisibility(View.INVISIBLE);
			button_M0246.setVisibility(View.INVISIBLE);
			button_M0349.setVisibility(View.INVISIBLE);
			button_Z1032.setVisibility(View.INVISIBLE);
			button_A0837.setVisibility(View.INVISIBLE);
			button_M0210_1.setVisibility(View.INVISIBLE);
			button_M0266.setVisibility(View.INVISIBLE);
			button_M0333_1.setVisibility(View.INVISIBLE);
			button_M0442.setVisibility(View.INVISIBLE);
			button_Z1112.setVisibility(View.INVISIBLE);
			button_A0529.setVisibility(View.INVISIBLE);
			button_M0116.setVisibility(View.INVISIBLE);
			button_A0768.setVisibility(View.INVISIBLE);
			button_A0091.setVisibility(View.INVISIBLE);
			button_T0042.setVisibility(View.INVISIBLE);
			button_T0010.setVisibility(View.INVISIBLE);
			button_T0001.setVisibility(View.INVISIBLE);
			button_M0232.setVisibility(View.INVISIBLE);
			button_M0181.setVisibility(View.INVISIBLE);
			button_T0015.setVisibility(View.INVISIBLE);
			button_Z1023.setVisibility(View.INVISIBLE);
			button_M0146.setVisibility(View.INVISIBLE);
			button_M0145.setVisibility(View.INVISIBLE);
			button_M0262.setVisibility(View.INVISIBLE);
			button_A0577.setVisibility(View.INVISIBLE);
			button_M0153.setVisibility(View.INVISIBLE);
			/* botones derecha inferior */
			button_M0293.setVisibility(View.VISIBLE);
			button_M0254.setVisibility(View.VISIBLE);
			button_M0293_1.setVisibility(View.VISIBLE);
			button_T0037.setVisibility(View.VISIBLE);
			button_M0271.setVisibility(View.VISIBLE);
			button_M0270.setVisibility(View.VISIBLE);
			button_M0258.setVisibility(View.VISIBLE);
			button_M0730.setVisibility(View.VISIBLE);
			button_M0272.setVisibility(View.VISIBLE);
			button_M0236.setVisibility(View.VISIBLE);
			button_A0678.setVisibility(View.VISIBLE);
			button_T0048.setVisibility(View.VISIBLE);
			button_M0256.setVisibility(View.VISIBLE);
			button_T0047.setVisibility(View.VISIBLE);
			button_M0237.setVisibility(View.VISIBLE);
			/* parte izquierda interior */
			button_M0253.setVisibility(View.INVISIBLE);
			button_M0252.setVisibility(View.INVISIBLE);
			button_M0251.setVisibility(View.INVISIBLE);
			button_M0247.setVisibility(View.INVISIBLE);
			button_M0122.setVisibility(View.INVISIBLE);
			button_M0240.setVisibility(View.INVISIBLE);
			button_M0393.setVisibility(View.INVISIBLE);
			button_M0290.setVisibility(View.INVISIBLE);
			button_M0234.setVisibility(View.INVISIBLE);
			button_M0069.setVisibility(View.INVISIBLE);
			button_M0287.setVisibility(View.INVISIBLE);
			button_M0199.setVisibility(View.INVISIBLE);
			button_M0274.setVisibility(View.INVISIBLE);
			button_M0241.setVisibility(View.INVISIBLE);
			button_A0162.setVisibility(View.INVISIBLE);
			button_A0744.setVisibility(View.INVISIBLE);
			button_A0285.setVisibility(View.INVISIBLE);
			button_M0318.setVisibility(View.INVISIBLE);
			button_M0273.setVisibility(View.INVISIBLE);
			button_M0239.setVisibility(View.INVISIBLE);
			button_M0267.setVisibility(View.INVISIBLE);
			button_M0249.setVisibility(View.INVISIBLE);
			button_M0250.setVisibility(View.INVISIBLE);
			/* botonoes puerta nevera */
			button_A0052.setVisibility(View.INVISIBLE);
			button_A0535.setVisibility(View.INVISIBLE);
			button_M0094.setVisibility(View.INVISIBLE);
			button_A0836.setVisibility(View.INVISIBLE);
			button_A0660.setVisibility(View.INVISIBLE);
			button_A0155.setVisibility(View.INVISIBLE);
			button_A0284.setVisibility(View.INVISIBLE);
			button_A0635.setVisibility(View.INVISIBLE);
			button_M0222.setVisibility(View.INVISIBLE);
			button_M0389.setVisibility(View.INVISIBLE);
			return true;
		case 2:
			imagen1.setVisibility(View.INVISIBLE);
			imagen2.setVisibility(View.INVISIBLE);
			imagen3.setVisibility(View.VISIBLE);
			imagen4.setVisibility(View.INVISIBLE);
			imagen5.setVisibility(View.INVISIBLE);

			/* botones vista general */
			button_A0241.setVisibility(View.INVISIBLE);
			button_A0238.setVisibility(View.INVISIBLE);
			button_T0049.setVisibility(View.INVISIBLE);
			button_M0242.setVisibility(View.INVISIBLE);
			button_M0082.setVisibility(View.INVISIBLE);
			button_A0273.setVisibility(View.INVISIBLE);
			button_T0081.setVisibility(View.INVISIBLE);
			button_M0278.setVisibility(View.INVISIBLE);
			button_T0044.setVisibility(View.INVISIBLE);
			button_M0281.setVisibility(View.INVISIBLE);
			button_M0294.setVisibility(View.INVISIBLE);
			button_A0243.setVisibility(View.INVISIBLE);
			button_A0669.setVisibility(View.INVISIBLE);
			button_M0297.setVisibility(View.INVISIBLE);
			button_T0030.setVisibility(View.INVISIBLE);
			button_M0243.setVisibility(View.INVISIBLE);
			button_A0813.setVisibility(View.INVISIBLE);
			button_A0239.setVisibility(View.INVISIBLE);
			button_M0286.setVisibility(View.INVISIBLE);
			button_A0562.setVisibility(View.INVISIBLE);
			button_A0102.setVisibility(View.INVISIBLE);
			button_M0333.setVisibility(View.INVISIBLE);
			button_M0165.setVisibility(View.INVISIBLE);
			button_M0334.setVisibility(View.INVISIBLE);
			button_M0564.setVisibility(View.INVISIBLE);
			button_M0067.setVisibility(View.INVISIBLE);
			button_M0245.setVisibility(View.INVISIBLE);
			button_M0210.setVisibility(View.INVISIBLE);
			button_M0158.setVisibility(View.INVISIBLE);
			button_M0105.setVisibility(View.INVISIBLE);
			button_A0575.setVisibility(View.INVISIBLE);
			button_M0123.setVisibility(View.INVISIBLE);
			button_M0264.setVisibility(View.INVISIBLE);
			button_M0246.setVisibility(View.INVISIBLE);
			button_M0349.setVisibility(View.INVISIBLE);
			button_Z1032.setVisibility(View.INVISIBLE);
			button_A0837.setVisibility(View.INVISIBLE);
			button_M0210_1.setVisibility(View.INVISIBLE);
			button_M0266.setVisibility(View.INVISIBLE);
			button_M0333_1.setVisibility(View.INVISIBLE);
			button_M0442.setVisibility(View.INVISIBLE);
			button_Z1112.setVisibility(View.INVISIBLE);
			button_A0529.setVisibility(View.INVISIBLE);
			button_M0116.setVisibility(View.INVISIBLE);
			button_A0768.setVisibility(View.INVISIBLE);
			button_A0091.setVisibility(View.INVISIBLE);
			button_T0042.setVisibility(View.INVISIBLE);
			button_T0010.setVisibility(View.INVISIBLE);
			button_T0001.setVisibility(View.INVISIBLE);
			button_M0232.setVisibility(View.INVISIBLE);
			button_M0181.setVisibility(View.INVISIBLE);
			button_T0015.setVisibility(View.INVISIBLE);
			button_Z1023.setVisibility(View.INVISIBLE);
			button_M0146.setVisibility(View.INVISIBLE);
			button_M0145.setVisibility(View.INVISIBLE);
			button_M0262.setVisibility(View.INVISIBLE);
			button_A0577.setVisibility(View.INVISIBLE);
			button_M0153.setVisibility(View.INVISIBLE);
			/* botones parte derecha interior */
			button_M0293.setVisibility(View.INVISIBLE);
			button_M0254.setVisibility(View.INVISIBLE);
			button_M0293_1.setVisibility(View.INVISIBLE);
			button_T0037.setVisibility(View.INVISIBLE);
			button_M0271.setVisibility(View.INVISIBLE);
			button_M0270.setVisibility(View.INVISIBLE);
			button_M0258.setVisibility(View.INVISIBLE);
			button_M0730.setVisibility(View.INVISIBLE);
			button_M0272.setVisibility(View.INVISIBLE);
			button_M0236.setVisibility(View.INVISIBLE);
			button_A0678.setVisibility(View.INVISIBLE);
			button_T0048.setVisibility(View.INVISIBLE);
			button_M0256.setVisibility(View.INVISIBLE);
			button_T0047.setVisibility(View.INVISIBLE);
			button_M0237.setVisibility(View.INVISIBLE);
			/* botones parte izquierda interior */
			button_M0253.setVisibility(View.VISIBLE);
			button_M0252.setVisibility(View.VISIBLE);
			button_M0251.setVisibility(View.VISIBLE);
			button_M0247.setVisibility(View.VISIBLE);
			button_M0122.setVisibility(View.VISIBLE);
			button_M0240.setVisibility(View.VISIBLE);
			button_M0393.setVisibility(View.VISIBLE);
			button_M0290.setVisibility(View.VISIBLE);
			button_M0234.setVisibility(View.VISIBLE);
			button_M0069.setVisibility(View.VISIBLE);
			button_M0287.setVisibility(View.VISIBLE);
			button_M0199.setVisibility(View.VISIBLE);
			button_M0274.setVisibility(View.VISIBLE);
			button_M0241.setVisibility(View.VISIBLE);
			button_A0162.setVisibility(View.VISIBLE);
			button_A0744.setVisibility(View.VISIBLE);
			button_A0285.setVisibility(View.VISIBLE);
			button_M0318.setVisibility(View.VISIBLE);
			button_M0273.setVisibility(View.VISIBLE);
			button_M0239.setVisibility(View.VISIBLE);
			button_M0267.setVisibility(View.VISIBLE);
			button_M0249.setVisibility(View.VISIBLE);
			button_M0250.setVisibility(View.VISIBLE);
			/* botonoes puerta nevera */
			button_A0052.setVisibility(View.INVISIBLE);
			button_A0535.setVisibility(View.INVISIBLE);
			button_M0094.setVisibility(View.INVISIBLE);
			button_A0836.setVisibility(View.INVISIBLE);
			button_A0660.setVisibility(View.INVISIBLE);
			button_A0155.setVisibility(View.INVISIBLE);
			button_A0284.setVisibility(View.INVISIBLE);
			button_A0635.setVisibility(View.INVISIBLE);
			button_M0222.setVisibility(View.INVISIBLE);
			button_M0389.setVisibility(View.INVISIBLE);

			return true;
		case 3:
			imagen1.setVisibility(View.INVISIBLE);
			imagen2.setVisibility(View.INVISIBLE);
			imagen3.setVisibility(View.INVISIBLE);
			imagen4.setVisibility(View.VISIBLE);
			imagen5.setVisibility(View.INVISIBLE);
			/* botones derecha inferior */
			button_A0241.setVisibility(View.INVISIBLE);
			button_A0238.setVisibility(View.INVISIBLE);
			button_T0049.setVisibility(View.INVISIBLE);
			button_M0242.setVisibility(View.INVISIBLE);
			button_M0082.setVisibility(View.INVISIBLE);
			button_A0273.setVisibility(View.INVISIBLE);
			button_T0081.setVisibility(View.INVISIBLE);
			button_M0278.setVisibility(View.INVISIBLE);
			button_T0044.setVisibility(View.INVISIBLE);
			button_M0281.setVisibility(View.INVISIBLE);
			button_M0294.setVisibility(View.INVISIBLE);
			button_A0243.setVisibility(View.INVISIBLE);
			button_A0669.setVisibility(View.INVISIBLE);
			button_M0297.setVisibility(View.INVISIBLE);
			button_T0030.setVisibility(View.INVISIBLE);
			button_M0243.setVisibility(View.INVISIBLE);
			button_A0813.setVisibility(View.INVISIBLE);
			button_A0239.setVisibility(View.INVISIBLE);
			button_M0286.setVisibility(View.INVISIBLE);
			button_A0562.setVisibility(View.INVISIBLE);
			button_A0102.setVisibility(View.INVISIBLE);
			button_M0333.setVisibility(View.INVISIBLE);
			button_M0165.setVisibility(View.INVISIBLE);
			button_M0334.setVisibility(View.INVISIBLE);
			button_M0564.setVisibility(View.INVISIBLE);
			button_M0067.setVisibility(View.INVISIBLE);
			button_M0245.setVisibility(View.INVISIBLE);
			button_M0210.setVisibility(View.INVISIBLE);
			button_M0158.setVisibility(View.INVISIBLE);
			button_M0105.setVisibility(View.INVISIBLE);
			button_A0575.setVisibility(View.INVISIBLE);
			button_M0123.setVisibility(View.INVISIBLE);
			button_M0264.setVisibility(View.INVISIBLE);
			button_M0246.setVisibility(View.INVISIBLE);
			button_M0349.setVisibility(View.INVISIBLE);
			button_Z1032.setVisibility(View.INVISIBLE);
			button_A0837.setVisibility(View.INVISIBLE);
			button_M0210_1.setVisibility(View.INVISIBLE);
			button_M0266.setVisibility(View.INVISIBLE);
			button_M0333_1.setVisibility(View.INVISIBLE);
			button_M0442.setVisibility(View.INVISIBLE);
			button_Z1112.setVisibility(View.INVISIBLE);
			button_A0529.setVisibility(View.INVISIBLE);
			button_M0116.setVisibility(View.INVISIBLE);
			button_A0768.setVisibility(View.INVISIBLE);
			button_A0091.setVisibility(View.INVISIBLE);
			button_T0042.setVisibility(View.INVISIBLE);
			button_T0010.setVisibility(View.INVISIBLE);
			button_T0001.setVisibility(View.INVISIBLE);
			button_M0232.setVisibility(View.INVISIBLE);
			button_M0181.setVisibility(View.INVISIBLE);
			button_T0015.setVisibility(View.INVISIBLE);
			button_Z1023.setVisibility(View.INVISIBLE);
			button_M0146.setVisibility(View.INVISIBLE);
			button_M0145.setVisibility(View.INVISIBLE);
			button_M0262.setVisibility(View.INVISIBLE);
			button_A0577.setVisibility(View.INVISIBLE);
			button_M0153.setVisibility(View.INVISIBLE);
			/* parte derecha interior */
			button_M0293.setVisibility(View.INVISIBLE);
			button_M0254.setVisibility(View.INVISIBLE);
			button_M0293_1.setVisibility(View.INVISIBLE);
			button_T0037.setVisibility(View.INVISIBLE);
			button_M0271.setVisibility(View.INVISIBLE);
			button_M0270.setVisibility(View.INVISIBLE);
			button_M0258.setVisibility(View.INVISIBLE);
			button_M0730.setVisibility(View.INVISIBLE);
			button_M0272.setVisibility(View.INVISIBLE);
			button_M0236.setVisibility(View.INVISIBLE);
			button_A0678.setVisibility(View.INVISIBLE);
			button_T0048.setVisibility(View.INVISIBLE);
			button_M0256.setVisibility(View.INVISIBLE);
			button_T0047.setVisibility(View.INVISIBLE);
			button_M0237.setVisibility(View.INVISIBLE);
			/* parte izquierda interior */
			button_M0253.setVisibility(View.INVISIBLE);
			button_M0252.setVisibility(View.INVISIBLE);
			button_M0251.setVisibility(View.INVISIBLE);
			button_M0247.setVisibility(View.INVISIBLE);
			button_M0122.setVisibility(View.INVISIBLE);
			button_M0240.setVisibility(View.INVISIBLE);
			button_M0393.setVisibility(View.INVISIBLE);
			button_M0290.setVisibility(View.INVISIBLE);
			button_M0234.setVisibility(View.INVISIBLE);
			button_M0069.setVisibility(View.INVISIBLE);
			button_M0287.setVisibility(View.INVISIBLE);
			button_M0199.setVisibility(View.INVISIBLE);
			button_M0274.setVisibility(View.INVISIBLE);
			button_M0241.setVisibility(View.INVISIBLE);
			button_A0162.setVisibility(View.INVISIBLE);
			button_A0744.setVisibility(View.INVISIBLE);
			button_A0285.setVisibility(View.INVISIBLE);
			button_M0318.setVisibility(View.INVISIBLE);
			button_M0273.setVisibility(View.INVISIBLE);
			button_M0239.setVisibility(View.INVISIBLE);
			button_M0267.setVisibility(View.INVISIBLE);
			button_M0249.setVisibility(View.INVISIBLE);
			button_M0250.setVisibility(View.INVISIBLE);
			/* botonoes puerta nevera */
			button_A0052.setVisibility(View.VISIBLE);
			button_A0535.setVisibility(View.VISIBLE);
			button_M0094.setVisibility(View.VISIBLE);
			button_A0836.setVisibility(View.VISIBLE);
			button_A0660.setVisibility(View.VISIBLE);
			button_A0155.setVisibility(View.VISIBLE);
			button_A0284.setVisibility(View.VISIBLE);
			button_A0635.setVisibility(View.VISIBLE);
			button_M0222.setVisibility(View.VISIBLE);
			button_M0389.setVisibility(View.VISIBLE);
			return true;
		}
		return false;
	}

	public boolean onCreateOptionsMenu(Menu menu) {
		super.onCreateOptionsMenu(menu);
		CreateMenu(menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		return MenuChoice(item);
	}

	public void asignarListener() {
		alphaDown = new AlphaAnimation(1.0f, 0.3f);
		alphaUp = new AlphaAnimation(0.3f, 1.0f);
		alphaDown.setDuration(1000);
		alphaUp.setDuration(1000);
		alphaDown.setFillAfter(true);
		alphaUp.setFillAfter(true);

		button_A0241.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				button_A0241.setBackgroundColor(R.color.azul);
				noParte = "A0241";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0238.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0238";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);

				startActivity(i);
			}
		});
		button_T0049.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0049";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0242.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0242";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0082.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0082";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0273.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0273";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0081.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0081";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0278.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0278";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0044.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0044";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0281.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0281";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0294.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0294";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});

		button_A0243.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0243";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0243.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0243";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0297.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0297";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0030.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0030";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0243.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0243";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0813.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0813";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0239.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0239";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0286.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0286";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0562.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0562";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0102.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0102";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0333.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0333";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0165.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0165";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0334.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0334";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0564.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0564";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0067.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0067";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0245.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0245";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0210.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0210";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0158.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0158";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0105.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0105";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0575.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0575";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0123.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0123";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0264.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0264";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0246.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0246";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0349.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0349";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_Z1032.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "Z1032";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0837.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0837";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0210_1.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0210";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0266.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0266";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0333_1.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0333";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0442.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0442";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_Z1112.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "Z1112";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0529.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0529";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0116.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0116";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0768.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0768";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0091.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0091";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0042.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0042";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0010.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0010";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0001.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0001";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0232.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0232";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0181.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0181";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0015.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0015";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});

		button_Z1023.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "Z1023";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0146.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0146";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0145.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0145";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0262.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0262";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0577.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0577";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0153.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0153";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0293.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0293";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0254.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0254";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0293_1.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0293";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0037.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0037";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0271.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0271";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0270.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0270";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0258.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0258";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0730.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0730";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0272.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0272";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0236.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0236";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0678.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0678";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0048.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0048";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0256.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0256";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_T0047.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "T0047";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0237.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0237";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0253.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0253";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0252.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0252";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0251.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0251";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0247.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0247";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0122.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0122";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0240.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0240";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0393.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0393";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0290.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0290";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0234.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0234";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0069.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0069";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0287.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0287";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0199.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0199";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0274.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0274";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0241.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0241";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0162.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0162";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0744.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0744";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0285.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0285";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0318.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0318";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0273.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0273";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0239.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0239";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0267.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0267";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0249.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0249";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0250.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0250";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0052.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0052";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0535.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0535";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0094.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0094";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0836.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0836";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0660.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0660";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0155.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0155";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0284.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0284";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_A0635.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "A0635";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0222.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0222";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});
		button_M0389.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				noParte = "M0389";
				Intent i = new Intent(getApplicationContext(),confirmacionActivity.class);
				i.putExtra("claveparte", noParte);
				startActivity(i);
			}
		});

	}

}
